package com.acane.instagram.feature.me

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val ME_ROUTE = "me"


fun NavGraphBuilder.meScreen(
    toLogin: () -> Unit,
    toMain: () -> Unit,
    toProfile: (String) -> Unit,
    toPost: (String, Int) -> Unit,
    toFollow: (String, String) -> Unit,
    toEditMe: () -> Unit,
    toRegister: () -> Unit,
    toCollection: () -> Unit,
) {
    composable(ME_ROUTE) {
        MeRoute(
            toProfile = toProfile,
            toLogin = toLogin,
            toMain = toMain,
            toPost = toPost,
            toFollow = toFollow,
            toEditMe = toEditMe,
            toRegister = toRegister,
            toCollection = toCollection,
        )
    }
}

fun NavController.navigateToMe(): Unit {
    navigate(ME_ROUTE)
}